" add this to your vimrc:

" Wrap visual selection in an XML comment
" hit \c in visual mode to comment xml.
vmap <Leader>c <Esc>:call CommentWrap()<CR>
function! CommentWrap()
  normal `>
  if &selection == 'exclusive'
    exe "normal i ===-->"
  else
    exe "normal a ===-->"
  endif
  normal `<
  exe "normal i<!--=== "
  normal `<
endfunction

" Insert java type comment: /* */
" In insert mode write /* enter....
set comments=sl:/*,mb:*,elx:*/
set formatoptions+=r

" Settings to replace tab. Use :retab for replacing tab in existing files.
set tabstop=4
set shiftwidth=4
set expandtab

